Skip to main content

MOD

Returns the result of the modulo operator, the remainder after a division operation.

Sample Usage​

MOD(10,4)

MOD(A2,B2)

Syntax​

MOD(dividend, divisor)

  • dividend - The number to be divided to find the remainder.
  • divisor - The number to divide by.

Notes​

The MOD function also applies on non-integer numbers but may result in an approximate result due to the use of floating point arithmetic. You can use the ROUND function to round the output up or down to get the expected result.

Examples​